public class Test1 {

    /*public static void main(String[] args) {
        Student student = new Student();
        student.print();

        Student student1 = null;
        //student1不指向任何对象
    }*/
}

/*class Student11 {
    public String name;
    public int age;
    //成员变量在没有初始化的时候都有一个默认值
    //引用类型:null
    //int:0
    //float:0.0f
    //char:'\u0000'
    //boolean:false

    public Student(){
        System.out.println("不含参数的构造方法");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("含有两个参数的构造方法");
    }

    public void doClass(){
        System.out.println(this.name+" 上课");
    }

    public void print(){
        System.out.println("姓名:"+this.name+" 年龄: "+this.age);
    }
}*/
